<?php

/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use Webman\Route;

return [
    // 奖品相关路由 (单活动模式)
    '/api/prize/list' => [\app\controller\PrizeController::class, 'getByActivity'],
    '/api/prize/create' => [\app\controller\PrizeController::class, 'create'],
    '/api/prize/{id}' => [\app\controller\PrizeController::class, 'update'],
    '/api/prize/{id}' => [\app\controller\PrizeController::class, 'delete'],
    
    // 用户相关路由 (单活动模式)
    '/api/user/list' => [\app\controller\UserController::class, 'getAll'],
    '/api/user/non-winners' => [\app\controller\UserController::class, 'getNonWinners'],
    '/api/user/winners' => [\app\controller\UserController::class, 'getWinners'],
    '/api/user/create' => [\app\controller\UserController::class, 'create'],
    '/api/user/{id}' => [\app\controller\UserController::class, 'update'],
    '/api/user/{id}' => [\app\controller\UserController::class, 'delete'],
    '/api/user/batch-import' => [\app\controller\UserController::class, 'batchImport'],
    '/api/user/clear-all' => [\app\controller\UserController::class, 'clearAll'],
    
    // 抽奖相关路由 (单活动模式)
    '/api/draw' => [\app\controller\DrawController::class, 'draw'],
    '/api/draw/records' => [\app\controller\DrawController::class, 'getRecords'],
    '/api/draw/records/round/{round}' => [\app\controller\DrawController::class, 'getRecordsByRound'],
    '/api/draw/reset' => [\app\controller\DrawController::class, 'reset'],
    
    // 活动设置相关路由
    '/api/activity/settings' => [\app\controller\ActivityController::class, 'getSettings'],
    '/api/activity/settings' => [\app\controller\ActivityController::class, 'saveSettings'],
    
    // 系统配置相关路由
    '/api/settings' => [\app\controller\SettingsController::class, 'getAll'],
    '/api/settings/get' => [\app\controller\SettingsController::class, 'get'],
    '/api/settings/set' => [\app\controller\SettingsController::class, 'set'],
    '/api/settings/batch' => [\app\controller\SettingsController::class, 'setBatch'],
    '/api/settings/delete' => [\app\controller\SettingsController::class, 'delete']
];
